﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CFEApp.Utility
{
	class Singleton<T> where T:new()
	{
		static T instance;

		public static T Instance
		{
			get
			{
				lock (typeof(T))
				{
					if (instance == null)
						instance = new T();
					return instance;
				}
			}
		}
	}
}
